package com.chennan.spring.demo.annotation.configuration;

import com.chennan.spring.modal.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chennan
 * @create 2021-11
 */
//@Configuration
public class ConfigurationTest {
    @Bean
    public Person person(){//默认拿的是方法名称
        return new Person();
    }
}
